package net.hn.hnms.biz.plan.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import net.hn.hnms.biz.plan.request.CooperativeMiningFacReq;
import net.hn.hnms.biz.plan.service.CooperativeMiningFacService;
import net.hn.hnms.biz.plan.vo.CooperativeMiningFacVo;
import net.hn.hnms.sys.common.core.domain.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 协同开采
 *
 * @author gzr
 * @date 2023-03-02
 */
@Api(value = "协同开采", tags = {"协同开采-回采统计"})
@RestController
@RequestMapping("/cooperativeMining")
public class CooperativeMiningFaceController {

    @Autowired
    private CooperativeMiningFacService cooperativeMiningFacService;

    @ApiOperation("获取工作面数据")
//    @SaCheckPermission("drivage:face:detail")
    @GetMapping("/data")
    public R<CooperativeMiningFacVo> selectData(CooperativeMiningFacReq cooperativeMiningFacReq) {
        return R.ok(cooperativeMiningFacService.selectData(cooperativeMiningFacReq));
    }
}
